<%@ page language="java" pageEncoding="UTF-8" contentType="text/html;charset=utf-8" %>
<%@ include file="/common/taglibs.jsp"%>
<html>
	<head>
		<title>
			新用户注册
		</title>
		<script type="text/javascript">
			$(document).ready(function(){
				$("#regForm").validationEngine();
			});
		</script>
	</head>
	<body>
		<div class="container_16">
			<div class="grid_16">
				<div class="content_top">
					<span>新用户注册</span>
				</div>
				<div class="content_bottom">
					<br />
					<form id="regForm" action="${ctx }/saveSignup.html" method="post">
						<table cellpadding="0" cellspacing="0" style="margin-left: 60px; width: 350px;">
							<tr>
								<td>
									<label>用户名：</label>
								</td>
								<td>
									<input class="validate[required] input" type="text" id="username" name="user.username" />
								</td>	
							</tr>
							<tr>
								<td>
									<label>密码：</label>
								</td>
								<td>
									<input class="validate[required] input" type="password" id="password" name="user.password" />
								</td>	
							</tr>
							<tr>
								<td>
									<label>确认密码：</label>
								</td>
								<td>
									<input class="validate[required,equals[password]] input" type="password" id="confirmPassword" name="confirmPassword" />
								</td>	
							</tr>
							<tr>
								<td>
									<label>姓名：</label>
								</td>
								<td>
									<input class="validate[required] input" type="text" id="name" name="user.name" />
								</td>	
							</tr>
							<tr>
								<td>
									<label>性别：</label>
								</td>
								<td>
									<select class="validate[required] input_100" id="sex" name="user.sex">
										<option value="">
											请选择
										</option>
										<option value="1">
											男
										</option>
										<option value="2">
											女
										</option>
									</select>
								</td>	
							</tr>
							<tr>
								<td>
									<label>生日：</label>
								</td>
								<td>
									<input type="text" class="validate[required,custom[date]] input" id="birthday" name="birthday" />
									<script>										        
										datePickerController.createDatePicker({ 
										    formElements:{"birthday":"%Y-%m-%d"}
									    });
								    </script>
								</td>
							</tr>
							<tr>
								<td>
									<label>邮箱：</label>
								</td>
								<td>
									<input class="validate[required,custom[email]] input" type="text" id="email" name="user.email" />
								</td>	
							</tr>
							<tr>
								<td>
									&nbsp;
								</td>
								<td>
									<label class="btn"><input id="signup" name="signup" type="submit" value="注册" /></label>
								</td>	
							</tr>
						</table>
					</form>
				</div>
			</div>		
		</div>	
	</body>
</html>